﻿<%@ Page Language="C#" EnableViewState="false" AutoEventWireup="true" CodeFile="tab_Class_List.aspx.cs" Inherits="AdminCMS_tab_Class_List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>栏目管理</title>
    <style type="text/css">
    body{ font-size:12px; }
td{ text-align:center; font-size:12px; }
    </style>
</head>
<body style="text-align:center;">

<form id="form1" runat="server">
    
    <div style="width:500px;">
	
		<div class="title_right2" style="padding-left:35px; padding-top:5px; text-align:left;">
			<span class="title_maintxt"><b>树状栏目结构</b></span>
		</div>
		
		<div class="border">
		    <asp:ListBox ID="lsb_Class" runat="server" Width="400px" Height="400px"></asp:ListBox>
		
		<div style="height:30px; padding-top:10px;">      
			<input type="button" id="btn_add" value="添加" onclick="SubmitEvent('tab_Class_Add.aspx');" />&nbsp;
			<input type="button" id="btn_Fix" value="修改" onclick="SubmitEvent('tab_Class_Fix.aspx');" />&nbsp;
			<input type="button" id="btn_Del" value="删除" onclick="SubmitEvent('tab_Class_Del.aspx',true);" />
		</div>
		
		</div>
		
		<!--阴影-->
	<div style="width:98%;" class="tdbg_left2">
	</div>
	<!--阴影end-->
    </div>    
    </form>
</body>
</html>
<link id="mylink" href="css/style<%=UIMethod.GetStyleValue()%>.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript">
function SubmitEvent(TargetUrl, IsTip)
{
    var lsb_object = document.getElementById('lsb_Class');
    if(lsb_object.selectedIndex == -1)
    {
        alert("请先选择一个节点");
        return;
    }
    
    if(IsTip)
    {
        if(!window.confirm("删除确认")){ return; }
    }
    location = TargetUrl + "?FullPath=" + lsb_object.value;
}
</script>